package cn.edu.scnu.semart.common.utils;


import javax.servlet.http.HttpServletRequest;

public class UserContext {
    public static Integer getUserId(HttpServletRequest req) {
        return Integer.valueOf(req.getHeader("X-User-Id"));
    }
    public static String getUserType(HttpServletRequest req) {
        return req.getHeader("X-User-Type");
    }
}